package com.czk.methodreferencce;

public class Demo1 {
	public static void main(String[] args) {
		//1
		print((String s)->{System.out.println(s);});
		//方法的引用
		print(System.out::println);
	}
	public static void print(Printable pri) {
		pri.print("hello");
	}
}
